package com.cch.cooperation.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Api 工程启动类
 *
 * @author cch
 */
@SpringBootApplication(scanBasePackages = "com.cch.cooperation")
@EnableScheduling
@EnableTransactionManagement
public class ApiStart extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(ApiStart.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ApiStart.class);
    }
}
